class UserInfo {
    /**
     * @param {string} id 
     * @param {string} name 
     */
    constructor(id, name) {
        this.id = id;
        this.name = name;
    }
}


class Session {
    /**
     * @param {bool} isGuest 
     * @param {UserInfo} user 
     * @param {string} agent 
     * @param {number} validtime 
     */
    constructor(isGuest, user, agent, validtime) {
        this.isGuest = isGuest;
        this.user = user;
        this.agent = agent;
        this.validtime = validtime;
    }
}


module.exports = {
    Session,
    UserInfo,
};